﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

namespace Dry.General
{
    public abstract class DryBase
    {
        protected static Database GetDatabase()
        {
            return GetSQLDatabase("foo");
            //return DatabaseFactory.CreateDatabase("ConnectionString");
        }

        protected static Database GetSQLDatabase(string connectionString)
        {
            return new SqlDatabase(Dry.ConnectionString); // @"Data Source=HuggeLaptop\SQLEXPRESS;Initial Catalog=DryTest;Integrated Security=SSPI;");
        }
    }
}
